package io.geekidea.boot.outbound.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.boot.area.entity.ImportArea;
import io.geekidea.boot.outbound.dto.OutboundExcel;
import io.geekidea.boot.outbound.entity.Outbound;
import io.geekidea.boot.outbound.query.OutboundQuery;
import io.geekidea.boot.salesslip.entity.Salesslip;
import io.geekidea.boot.salesslip.query.SalesslipQuery;
import io.geekidea.boot.warehousentry.dto.StatisticsDto;
import io.geekidea.boot.warehousentry.dto.WarehousentryExcel;
import io.geekidea.boot.warehousentry.query.WarehousentryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;


@Mapper
public interface OutboundMapper extends BaseMapper<Outbound> {

    Page<Outbound> getOutboundPageList(Page<Outbound> page, @Param("param") OutboundQuery outboundQuery);
    int delById(@Param("id")Integer id);

    List<OutboundExcel> getDownloadList(@Param("param") OutboundQuery outboundQuery);

    int getSingularCount(@Param("param") WarehousentryQuery warehousentryQuery);

    List<StatisticsDto> getWeekCount(@Param("param") WarehousentryQuery warehousentryQuery);
}
